package com.example.openim.service;

import com.example.openim.domain.GroupReviewInfo;
import com.example.openim.dto.BatchReadDto;
import com.example.openim.dto.GroupInfoDto;
import com.example.openim.utils.AjaxResult;
import jakarta.servlet.http.HttpServletRequest;

import java.util.Map;

/**
 * @description: 群组
 * @author: xhq
 * @create: 2025-11-07 08:54
 */
public interface GroupInfoService {


    /**
     * @param creatorUserID: 用户id
     * @return: java.util.List<com.example.openim.dto.GroupReviewInfoDto>
     * @author: ZhangHuixin
     * @date: 2025-11-07 09:17:45
     * @description: 根据用户id查询群组审核信息
     */
    Map queryList(String creatorUserID,Integer page,Integer pageSize);

    /**
     * 创建群组添加群组审核信息
     *
     * @param dto
     * @return
     */
    AjaxResult createGroup(GroupInfoDto dto);


    /**
     * @param groupReviewInfo:
     * @return: java.lang.Boolean
     * @author: ZhangHuixin
     * @date: 2025-11-07 14:51:52
     * @description: 审核
     */
    AjaxResult audit(HttpServletRequest request, GroupReviewInfo groupReviewInfo);

    /**
     * 批量已读
     *
     * @param dto
     * @return
     */
    AjaxResult batchRead(BatchReadDto dto);
}
